home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000220_fdc@columbia.edu_Wed Dec 14 14:47:53 2005.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: c-kermit8 and slow http downloads
  5. Date: 14 Dec 2005 19:47:44 GMT
  6. Organization: Columbia University
  7. Lines: 52
  8. Message-ID: <slrndq0tn0.77a.fdc@sesame.cc.columbia.edu>
  9. References: <adZnf.57226$Tf5.41708@newsread1.mlpsca01.us.to.verio.net>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1134589664 28322 128.59.59.56 (14 Dec 2005 19:47:44 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 14 Dec 2005 19:47:44 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15467
  17.  
  18. On 2005-12-14, Matt SF <mattsf@example.com> wrote:
  19. : I know we're not supposed to say kermit is slow, but for my http 
  20. : downloads, it appears to be!  :)
  21. :
  22. : I wrote to kermit-support but on second thought I probably shouldn't 
  23. : have bothered them without asking here first.  so here goes:
  24. :
  25. : I have been using c-kermit on Solaris 8 recently with some scripts for
  26. : file push and retrieval.  For push, I'm doing ftp scripting.  For
  27. : retrievals, I'm using the http command set.  They both work well in a
  28. : scripting environment.
  29. :
  30. : One thing I notice though, doing an 'http get' on a file only gives me a
  31. : download speed of about 16kB/s.  Using 'wget' on the same file and same
  32. : webserver, it comes down at over 200kB/s.
  33. :
  34. : I've tried my binary, a pre-compiled binary, using 'fast' on the kermit
  35. : command line....I just can't figure out why it's running at such a slow
  36. : download speed.
  37. :
  38. : My version is 8.0.211, Solaris 8, gcc, default compile options.
  39. :
  40. : Anyone have some ideas on how I can improve the speed?  Thank you!
  41. :
  42. I checked this locally just now.  There does indeed seem to be some slowness
  43. in Kermit's HTTP GET.  Downloading a 2MB file with Kermit HTTP I get 50K cps,
  44. versus 1002K cps with Kermit FTP from/to the same hosts.  Slower by a factor
  45. of 20.  On the other hand, I have had similar reports about Kermit FTP, which
  46. seem to happen only to certain people and not to anybody else.  So maybe
  47. it's a universal problem with the HTTP code, or maybe it's particular to
  48. certain circumstances.
  49.  
  50. I invite anybody who feels like an afternoon of fun to take a look at the
  51. routine http_get() in ckcnet.c.  It's best if you look at the current working
  52. version of the code:
  53.  
  54.   http://www.columbia.edu/kermit/ckdaily.html
  55.  
  56. A quick glance at the code shows there are two scenarios: chunked and
  57. non-chunked.  The server announces which method to use.  The non-chunked
  58. method looks like it might be really slow.  Suggestion: add a debug() clause
  59. here:
  60.  
  61.             } else if (!ckstrcmp(buf,"Transfer-Encoding:",18,0)) {
  62.                 if ( ckindex("chunked",buf,18,0,0) != 0 )
  63.                     chunked = 1;
  64.             }
  65.  
  66. to see which method was used.  If non-chunked, probably what's needed is
  67. a whole new layer of buffering.
  68.  
  69. - Frank